{% extends "layout/basic.html" %}
{% load static %}
{% block title %}
    价格
{% endblock %}
{% block css %}

{% endblock %}

{% block content %}
    <div class="container">
        <div class="slogan" style="font-size: 20px;font-weight: bold;text-align: center" >多种方案， 适用多种场景</div>
        <div class="row">
            {% for item in policy_list %}
                <div class="col-md-4">
                    <div class="panel panel-default" style="margin-top: 20px">
                        <div class="panel-heading" style="font-size: 14px; text-align: center; font-weight: bold">{{ item.title }}</div>
                        <div class="panel-body">
                            <p>￥{{ item.price }}/年</p>
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <form class="form-inline" method="get" action="{% url 'web:payment' policy_id=item.id %}">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-addon">数量</div>
                                                <input type="number" name="number" value="1" class="form-control" placeholder="购买数量">
                                                <div class="input-group-btn">
                                                    <input type="submit" value="立即购买" class="btn btn-primary">
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </li>
                                <li class="list-group-item">最大项目数量：{{ item.project_num }}</li>
                                <li class="list-group-item">最大项目空间：{{ item.project_space }} G</li>
                                <li class="list-group-item">最大文件支持：{{ item.per_file_size }} M</li>
                                <li class="list-group-item">最大项目成员：{{ item.project_member }}</li>
                            </ul>
                        </div>
                    </div>
                </div>
            {% endfor %}

        </div>
    </div>
{% endblock %}







